package com.cin.cma.client.controller;

import com.alibaba.fastjson2.JSONObject;
import com.cin.cma.client.config.SocketIOConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class MainController {

    @GetMapping({"/health", "/"})
    public String health() {
        return "success";
    }

    @GetMapping("/getInfo")
    public JSONObject getInfo() {
        return SocketIOConfig.info;
    }
}
